TenWebOptimizer\OptimizerUtils D

Total Complexity 600
Dependencies 25
Dependents 31
Total lines 2,912
Lines of code 1,987
Logical lines of code 1,126
Comment lines 348
Methods 103
Properties 1

Methods 103

Method Rating Maintainability Complexity Lines of code
clear_third_party_cache()
D
35 32 77
replace_bg()
C
35 28 69
serve_different_sizes_for_critical_bg_image()
C
38 26 62
regenerate_critical()
B
36 17 82
two_update_subscription()
B
40 18 51
init_defines()
B
43 16 51
substr_replace()
A
48 15 33
init_flow_score_check()
A
39 12 60
request_webp_action()
A
40 11 63
delete_all_cache_file()
A
50 13 26
is_pagespeed_image_optimization_enables()
A
56 13 16
set_global_mode()
A
49 12 29
get_post_id()
A
45 11 39
assemble_parsed_url()
A
56 12 15
cache_compare()
A
49 11 29
injectCriticalBg()
A
50 11 25
check_page_has_no_redirects()
A
48 9 35
cache_files_parsing_array()
A
48 9 32
get_tenweb_connection_link()
A
45 8 39
get_current_post_info()
A
52 9 24
inject_in_html()
A
48 8 35
add_wpml_home_pages_into_critical_pages()
A
51 8 27
clear_cloudflare_cache()
A
49 8 27
update_post()
A
52 8 24
get_modes()
A
52 8 23
clear_iframe_src()
A
43 6 52
two_critical_status()
A
54 8 20
download_critical()
A
47 7 34
wp_maybe_generate_attachment_metadata()
A
55 8 17
get_default_critical_pages()
S
47 6 39
replace_font()
S
52 7 24
dirsize()
S
56 7 18
delete_critical_page()
S
52 6 23
generate_wpml_home_pages_critical_css()
S
53 6 23
triggerPostOptimizationTasks()
S
48 5 32
set_critical()
S
56 6 16
get_critical_default_sizes()
S
58 6 16
is_rest()
S
59 6 13
check_plugin_update()
S
62 6 11
get_wpml_home_urls()
S
52 5 25
tweak_cdn_url_if_needed()
S
57 5 16
is_tenweb_booster_connected()
S
66 6 7
map_deep()
S
58 5 15
get_page_url()
S
59 5 14
delete_define()
S
60 5 12
get_url_query()
S
62 5 11
delete_so_page()
S
54 4 21
update_site_state()
S
48 3 34
testWebPDelivery()
S
56 4 18
check_score()
S
56 4 18
get_absolute_url()
S
57 4 17
get_permalink_name_by_id()
S
56 4 16
maybe_replace_cdn_path()
S
64 5 9
siteurl_not_root()
S
62 4 11
update_connection_flow_progress()
S
52 3 25
filter_incompatible_plugins()
S
58 3 16
is_plugin_active()
S
63 4 10
is_paid_user()
S
73 4 4
replace_google_font_url()
S
58 3 15
get_meta_values()
S
61 3 12
getCriticalPages()
S
62 3 12
get_wpml_post_flag_url()
S
61 3 12
get_body_position()
S
61 3 12
remove_domain_part()
S
63 3 11
get_worker_script()
S
53 2 23
strlen()
S
67 3 7
strrpos()
S
67 3 7
two_redirect()
S
66 3 9
remove_url_protocol()
S
63 3 10
mbstring_available()
S
64 3 10
isJson()
S
77 3 3
is_pagespeed_js_defer_enabled()
S
76 3 3
findArr()
S
67 3 8
is_pagespeed_lazyload_enabled()
S
76 3 3
split_css_to_arr()
S
64 3 9
delete_cache_file()
S
64 3 10
strpos()
S
67 3 7
flushCloudflareCache()
S
64 3 10
add_log_for_score_check_flow()
S
61 2 12
get_conflicting_plugins()
S
62 2 11
purge_pagespeed_cache()
S
67 2 7
get_javascipt_type()
S
74 2 4
warmup_cache()
S
68 2 6
is_pagespeed_enabled()
S
78 2 3
update_critical_statuses()
S
67 2 7
get_ao_wp_site_url_parts()
S
69 2 7
is_protocol_relative()
S
68 2 7
stripslashes_deep()
S
72 2 5
check_if_hosted_website()
S
71 2 6
path_canonicalize()
S
60 1 15
send_data_to_performance()
S
59 1 14
removeBgImageMarkers()
S
65 1 11
is_wpml_active()
S
80 1 3
delete_all_cache_db()
S
65 1 8
getImageIdByUrl()
S
66 1 7
two_flatten()
S
72 1 5
delete_files_by_prefix()
S
72 1 5
has_changed_bg_image()
S
80 1 3
str_is_valid_regex()
S
70 1 6
IOConnected()
S
79 1 3
TWOConnected()
S
80 1 3
preg_grep_keys()
S
77 1 3
check_admin_capabilities()
S
80 1 3